package light.head.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 商品类型表
 */
@Entity
@Table
public class ProductType implements Serializable{

	private static final long serialVersionUID = -1166328557259466581L;
	
	private Integer code;					// 流水号
	private String name;					//类型名称
	private Integer pt;						//父类型
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column
	public Integer getCode() {
		return code;
	}
	
	@Column
	public String getName() {
		return name;
	}
	
	@Column
	public Integer getPt() {
		return pt;
	}
	
	
	
	
	
	
	
	
	
	
	public void setCode(Integer code) {
		this.code = code;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setPt(Integer pt) {
		this.pt = pt;
	}
	

}
